import logging,yagmail,yaml
def setrt():
    logging.basicConfig(filename='./log/xiachufang.txt',level=logging.DEBUG,filemode='w+',format='%(asctime)s->%(thread)d->%(message)s')
def ast_emil(flif):
    emil = yagmail.SMTP(host='smtp.qq.com',user='2410811597@qq.com',password='uulxfswthtmedihb')
    emil.send(to='2410811597@qq.com',subject='日志报告',contents='报告代码',attachments=flif)
def est_get_set_yaml(filed):
    with open(filed,'r',encoding='utf-8')as f:
        return yaml.safe_load(f)